<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>商家主页</title>
<meta content="提供好友之间，发起活动、求活动、老朋友聚会、认识新朋友的有品质的聚会活动平台。" name="description"/>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&region=zh"></script>
<script type="text/javascript" src="../../dwr/engine.js"></script>
<script type="text/javascript" src="../../lovejes/lovejes.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="../js/sys_util.js"></script>
<script type="text/javascript" src="../js/front/index.js"></script>
<script type="text/javascript" src="../js/front/indexbus.js"></script>
<link href="../themes/default/css/css.css" rel="stylesheet" type="text/css"/>
<link rel="shortcut icon" href="http://www.cuniao.com/dpupload/logo.ico"/>
<script type="text/javascript">
function scrollDoor(){
}
scrollDoor.prototype = {
	sd : function(menus,divs,openClass,closeClass){
		var _this = this;
		if(menus.length != divs.length){
			alert("菜单层数量和内容层数量不一样!");
			return false;
		}
		for(var i = 0 ; i < menus.length ; i++){
			_this.$(menus[i]).value = i;
			_this.$(menus[i]).onclick = function(){
				for(var j = 0 ; j < menus.length ; j++){
					_this.$(menus[j]).className = closeClass;
					_this.$(divs[j]).style.display = "none";
				}
				_this.$(menus[this.value]).className = openClass;
				_this.$(divs[this.value]).style.display = "block";
			}
		}
	}
	,$ : function(oid){
		if(typeof(oid) == "string")
		return document.getElementById(oid);
		return oid;
	}
}
window.onload = function(){
	var SDmodel = new scrollDoor();
	SDmodel.sd(["tab1","tab2","tab3","tab4","tab5"],["tdivs1","tdivs2","tdivs3","tdivs4","tdivs5"],"tabseled3","tabnoseled3","tabnoseled3","tabnoseled3","tabnoseled3");
}
var timename=setInterval("Cn_Index.queryhint();",25000); //定时器
</script>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-24914300-1']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
</head>
<body onload="Cn_Indexbus.init();Cn_Index.busQueryTopic();">
<div id="topframe">
	<div class="topt">
		<ul>
			<li><a onclick="Cn_Index.copyUrl()" href="javascript:void(0);">邀请注册</a>
			<li><a target="_blank" href="../acl/modifyuser.html">帐号设置</a></li>
			<li><a href="javascript:void(0);" onclick="Jes.doLogout();">退出</a></li>
		</ul>
	</div>
	<div class="logo">
	</div>
	<div class="navw">
		<div class="nav">
			<ul>
				<li><a href="../front/indexbus.html">首 页</a></li>
				<li><a href="../bus/busact.html">发起活动</a></li>
				<li><a href="../bus/busaudit.html">我的管理</a></li>
			</ul>
		</div>
		<div class="search">
			<input name="query" type="text" id="searcht" value="找活动、找人" size="20" maxlength="20" onkeydown=" if (event.keycode == '13'){cn_index.searchto();return false;}" onblur="if(this.value==''){this.value=this.title;}this.style.color='#999999'" onfocus="if(this.value==this.title){this.value='';}" title="找活动、找人" style="color:#787878;" title="活动主题"/>
			<input name="input" class="btn_search" id="input" value="" onclick="Cn_Index.searchTo();"/>
		</div>
	</div>
</div>
<div id="mainframe">
	<div id="leftframe">
		<div class="tltle_sj">
			<div class="img_sj" id="img_sj" name="img_sj">
				
			</div>
			<div class="cjsj">
				<form id="form1" name="form1">
					<input type="hidden" id="busid">
					<!-- 商家ID -->
					<table cellspacing="3" class="tabel_sj">
					<tr style="display:none">
						<td style="background:none; padding:2px 0; text-align:right;">
							<a class="modifyurl" style="display:none" id="modifyinfo" name="modifyinfo"  href="../bus/busmodify.html">修改信息</a>
						</td>
					</tr>
					<span id="name" class="con"></span>
					<tr>
						<td height="22" class="name">
							<p>关注：<span class="bigred2" id="follownum"></span>被关注：<span class="bigred2" id="fansnum"></span>参与活动：<span class="bigred2" id="resnum"></span></p>
						</td>
					</tr>
					<tr>
						<td id="zhekuo">
							<p>
								签约折扣：<span class="bigred2"></span>
							</p>
						</td>
					</tr>
					<tr>
						<td id="telephone">
							电话：
						</td>
					</tr>
					<tr>
						<td id="renjun">
							参考人均：<span class="con">无</span>
						</td>
					</tr>
					<tr>
						<td id="address">
						</td>
					</tr>
					</table>
				</form>
			</div>
		</div>
		<div id="tabdiv3">
			<ul class="tabbar3" id="tabbar3">
				<li id="tab1" class="tabseled3"><a href="javascript:Cn_Indexbus.tabChange(1);">全部内容</a></li>
				<li id="tab2" class="tabnoseled3"><a href="javascript:Cn_Indexbus.tabChange(2);">详情页面</a></li>
				<li id="tab3" class="tabnoseled3"><a href="javascript:Cn_Indexbus.tabChange(3);Cn_Indexbus.yhlog();">详细优惠信息</a></li>
				<li id="tab4" class="tabnoseled3"><a href="javascript:Cn_Indexbus.tabChange(4);Cn_Indexbus.actlog();">活动次数<span></span></a></li>
				<li id="tab5" class="tabnoseled3"><a href="javascript:Cn_Indexbus.tabChange(5);Cn_Indexbus.discuss();">用户评论<span></span></a></li>
			</ul>
			<div id="tdivs1" class="tdivs1">
				<div id="dtab1" style="display:block">
					<div id="all_topic">
					123123
					<!--内容-->
					</div>
					<div class="manu" id="all_page">
					</div>
				</div>
			</div>
			<div id="tdivs2" class="tdivs2">
				<div id="dtab2">
					<div class="sjedit">
						<a href="javascript:Cn_Indexbus.showContent(this);" class="icoedit" id="editcontent">编辑内容</a>
						<div class="sjeditcon" id="sjeditcon">
							 加载中.......
						</div>
						<div id="divcontent" style="display:none" >
							<textarea name="content" id="content"></textarea>
							<input class="letter_send" type="button" value="保存" id="btn_save" onclick="Cn_Indexbus.save();"/>
						</div>
					</div>
				</div>
			</div>
			<div id="tdivs3" class="tdivs3">
				<div id="dtab3">
					<table width="100%" cellpadding="0" cellspacing="0" border="0" class="sjtable01" id="yhtable">
					<thead>
					<tr>
						<th>
							时间
						</th>
						<th>
							周一
						</th>
						<th>
							周二
						</th>
						<th>
							周三
						</th>
						<th>
							周四
						</th>
						<th>
							周五
						</th>
						<th>
							周六
						</th>
						<th>
							周日
						</th>
					</tr>
					</thead>
					<tbody>
					<tr>
						<td style="font-weight:bold;">
							协议折扣/折
						</td>
						<td id="mon" style="color:#ED1B24">
						</td>
						<td id="tue" style="color:#ED1B24">
						</td>
						<td id="wed" style="color:#ED1B24">
						</td>
						<td id="thu" style="color:#ED1B24">
						</td>
						<td id="fri" style="color:#ED1B24">
						</td>
						<td id="sat" style="color:#ED1B24">
						</td>
						<td id="sun" style="color:#ED1B24">
						</td>
					</tr>
					</tbody>
					</table>
					<br/>
					<div class="shtablecon">
						<h5>最近优惠活动</h5>
						<table width="100%" cellpadding="0" cellspacing="0" border="0" class="sjtable02">
						<thead>
						<tr>
							<th width="120">
								活动时间
							</th>
							<th>
								优惠情况
							</th>
							<th width="120">
								优惠方式
							</th>
						</tr>
						</thead>
						<tbody id="yhlog" name="yhlog">
							
						</tbody>
						</table>
					</div>
				</div>
			</div>
			<div id="tdivs4" class="tdivs4">
				<div id="dtab4">
				<!--
					<table width="100%" cellpadding="0" cellspacing="0" border="0" class="sjtable01">
					<thead>
					<tr>
						<th>
							商家名称
						</th>
						<th>
							总交易额
						</th>
						<th>
							总人次
						</th>
						<th>
							平均折扣
						</th>
						<th>
							总节省
						</th>
					</tr>
					</thead>
					<tbody>
					<tr id="totalinfo">
						<td>
							<a href="#" class="name" title="点击查看详情">隔壁咖啡</a>
						</td>
						<td>
							5000元
						</td>
						<td>
							50人/次
						</td>
						<td>
							8（折）
						</td>
						<td>
							1000元
						</td>
					</tr>
					</tbody>
					</table>
					<br/>
					-->
					<table width="100%" cellpadding="0" cellspacing="0" border="0" class="sjtable02">
					<thead>
					<tr>
						<th width="120">
							发起人
						</th>
						<th>
							总交易额
						</th>
						<th width="120">
							人数
						</th>
						<th>
							交易时间
						</th>
					</tr>
					</thead>
					<tbody id="actlog" name="actlog">
					<tr>
						<td>
							<a href="#" class="name" title="点击查看详情">加菲猫1</a>
						</td>
						<td>
							3000
						</td>
						<td>
							40
						</td>
						<td>
							2011-12-15
						</td>
					</tr>
					</tbody>
					</table>
				</div>
			</div>
			<div id="tdivs5" class="tdivs5">
				<div id="dtab5">
					<br/>
					<table width="100%" cellpadding="0" cellspacing="0" border="0" class="sjtable02">
					<thead>
					<tr>
						<th width="120">
							评论人
						</th>
						<th>
							内容
						</th>
						<th width="120">
							评论时间
						</th>
					</tr>
					</thead>
					<tbody>
					<tr>
						<td>
							<a href="#" class="name" title="点击查看详情">加菲猫评论员1号</a>
						</td>
						<td class="tabcon">
							<p>
								好吃好吃超好好吃的买好多好吃的买好多好吃的
							</p>
						</td>
						<td>
							2011-10-10
						</td>
					</tr>
					</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div id="rightframe">
		<div id="address1">
		</div>
		<div class="sj_map" id="sj_map" name="sj_map" style="width:308px;height:340px;">
		</div>
		<div class="hd_cjgh">
			<h3><span>参加过的人还有</span><a href="javascript:Cn_Index.queryIMayGz(parseInt(Jes('npage').value)+1);">换一换</a></h3>
			<input type="hidden" id="tpage"><!-- 总页数 -->
			<input type="hidden" id="npage"><!-- 目前页数 -->
			<ul id="imaygzuser">
			</ul>
		</div>
		<div id="goToTop">
			<a href="#">返回顶部</a>
		</div>
	</div>
</div>
<div id="botframe">
	<div class="footer">
		<div class="botlink">
			<span class="about"><a href="#">关于簇鸟</a> ·<a href="#">在簇鸟工作</a> ·<a href="#">关于我们</a> ·<a href="#">免责申明</a> ·<a href="#">帮助中心</a></span><span class="copyright">© 2011－2021 簇鸟网(www.cuniao.com) 浙ICP备11038099号</span>
		</div>
	</div>
</div>
<!-- 通知 -->
<div id="topnotice" style="display:none">
</div>
<input type="hidden" id="fuserid">
<!-- 被回复人的ID -->
<input type="hidden" id="replyid">
<!-- 活动ID -->
<input type="hidden" id="actid">
<!--隐藏发私信-->
<div class="hidden2" id="showDiv2">
	<div class="hidd_01">
		<div class="hidd_title">
			 发私信<span onclick="$('#showDiv2').hide()">x</span>
		</div>
		<div class="hidd_con">
			<form>
				<div class="letter_name">
					<label>私信内容：</label>
					<textarea onkeyup="Cn_Index.limitSx(this)" class="letter_con" id="letter_area" name="letter_area"></textarea>
				</div>
				<div class="face">
					<img src="../themes/default/images/face.gif"/>
				</div>
				<input type="button" value="发送" id="btn_sxsend" class="letter_send" onclick="Cn_Index.send();"/>
			</form>
			<span id="sx_leftnum">说明：还可以输入180字</span>
		</div>
	</div>
</div>
<!--设置分组-->
<div class="hidden4" id="showDiv4">
	<div class="hidd_01">
		<div class="hidd_title" style="color:red">
			 关注成功!<span onclick="$('#showDiv4').hide()">x</span>
		</div>
		<div class="hidd_con_4">
			<span>为“<span id="fuserlongid"></span>”选择分组：</span>
			<div class="group">
				<ul id="option_groups">
				</ul>
				<div class="clear">
				</div>
				<!--
                                <a href="###" onclick="openShutManager(this,'box')">+创建新分组</a>
                -->
				<div id="box" style="display:none">
					<input type="text" id="newGroupName" class="organize"/><input type="button" onclick="Cn_Index.addNewGroup();" value="创建" class="new"/>
					<span onclick="$('#box').hide()" style="cursor:pointer;">取消</span>
				</div>
				<div class="clear">
				</div>
			</div>
			<input type="button" class="save" onclick="Cn_Index.doGroup();" value="保存"/>
			<input type="button" class="cancel" onclick="$('#showDiv4').hide();" value="取消"/>
		</div>
	</div>
</div>
<!--hide 发起活动成功-->
<div class="hidden6" id="showDiv6">
	<div class="hidd_01">
		<div class="hidd_title" style="color:red">
			 发起活动成功!
		</div>
		<input type="hidden" id="toactcontent">
		<input type="hidden" id="toactpic">
		<div class="hidd_con_4">
			 可选择活动分享到：
			<div class="hdfx">
				<a href="#"><img onclick="postToSina();" title="分享到新浪微博" src="../themes/default/images/sinaminiblog.gif" width="40" height="40"/></a>
				<a href="#"><img onclick="postToQQ();" title="分享到QQ微博" src="../themes/default/images/qqweibo.gif" width="40" height="40"/></a>
				<a href="#"><img onclick="postToKaixin();" title="分享到开心网" src="../themes/default/images/kaixin001.gif" width="40" height="40"/></a>
				<a href="#"><img title="分享到其他" src="../themes/default/images/pic_more.gif" width="40" height="40"/></a>
			</div>
			<input type="button" class="save" onclick="$('#showDiv6').hide();Jes('act.content').value='';" value="完成"/>
		</div>
	</div>
</div>
<!--hide取消关注-->
<div class="hidegz1" id="hidegz1">
	<div class="hidd_con gz_hidecon">
		<p>
			 确定不再关注?
		</p>
		<input type="button" class="hid_que" value="确定" onclick="Cn_Friend.doRemoveGuanzhu()"/>
		<input type="button" class="hid_ch" value="取消" onclick="$('#hidegz1').hide()"/>
	</div>
</div>
<!--设置备注名-->
<div class="hidden5" id="showDiv5">
	<div class="hidd_01">
		<div class="hidd_title">
			设置备注名<span onclick="$('#showDiv5').hide()">x</span>
		</div>
		<div class="hidd_con_5">
			<div>
				给朋友加个备注名，方便认出他是谁
			</div>
			<input type="text" class="beizhu" id="beizhu"/><input type="button" onclick="Cn_Index.saveName();" value="保存" class="save_name"/>
		</div>
	</div>
</div>
<script>
function postToSina(){
	var tt = '我在簇鸟网发起了('+Jes('act.content').value +')的活动，邀请大家一起参加。';
  	var pp = 'http://www.cuniao.com/dpupload/' + Jes('actpic').value;
	var title = encodeURI(tt);
	var url = encodeURIComponent('http://www.cuniao.com/cuniao/cuniao/act/actview.html?id='+document.getElementById('actid').value);
	var appkey = '3649385895';
	var ralateUid = '2205112750';
	var pic = encodeURIComponent(pp);
	var _u = 'http://v.t.sina.com.cn/share/share.php?url='+ url+'&appkey='+ appkey+'&title='+ title+'&pic='+ pic+'&ralateUid='+ ralateUid;
	window.open( _u,'', 'width=72, height=16, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
}
function postToQQ(){
	var tt = '我在簇鸟网发起了('+Jes('act.content').value +')的活动，邀请大家一起参加。';
  	var pp = 'http://www.cuniao.com/dpupload/' + Jes('actpic').value;
	var _t = encodeURI(tt);
	var _url = encodeURIComponent('http://www.cuniao.com/cuniao/cuniao/act/actview.html?id='+document.getElementById('actid').value);
	var _appkey = encodeURI("0ba0211b456941acacc1a62a3b5bf034");
	var _pic = encodeURI(pp);
	var _site = 'http://www.cuniao.com';
	var _u = 'http://v.t.qq.com/share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t;
	window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
}
function postToKaixin(){
	var tt = '我在簇鸟网发起了('+Jes('act.content').value +')的活动，邀请大家一起参加。';
	var rtitle = encodeURI(tt);
	var rurl = encodeURIComponent('http://www.cuniao.com/cuniao/cuniao/act/actview.html?id='+document.getElementById('actid').value);
	var _u = 'http://www.kaixin001.com/repaste/bshare.php?rtitle='+ rtitle+'&rurl='+rurl;
	window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
}
function showhidediv(id) {
                var sbtitle = document.getElementById(id);
                if (sbtitle) {
                    if (sbtitle.style.display == 'block') {
                        sbtitle.style.display = 'none';
                        return 0;
                    } else {
                        sbtitle.style.display = 'block';
                        return 1;
                    }
                }
}
function showhid(id){
	document.getElementById(id).style.display ='block';
}
function showhid2(id){
	document.getElementById(id).style.display ='none';
}
</script>
</body>
</html>